package kassiopeia.agent.repository;

import java.io.File;
import java.net.URL;
import kassiopeia.commons.exception.RepositoryException;
import kassiopeia.commons.model.Coordinates;

public class HttpRepository implements Repository {

	@SuppressWarnings("unused")
	private URL repositoryUrl;

	@SuppressWarnings("unused")
	private File downloadDir;

	public HttpRepository(String repositoryUrl, String downloadDir) {
		try {
			this.repositoryUrl = new URL(repositoryUrl);
			this.downloadDir = new File(downloadDir);

		} catch(Exception exception) {
			throw new RepositoryException("Can't configure remote repository", exception);
		}
	}

	@Override
	public File getPluginJar(Coordinates coords) {
		return null;
	}

	@Override
	public String getLocation() {
		return "MOCK-REPOSITORY";
	}

}
